//
//  DotClip.m
//  asinoc
//
//  Created by Colin Leung on 24/05/2010.
//  Copyright 2010 Digi3 Studio. All rights reserved.
//

#import "DotClip.h"

@implementation DotClip
@synthesize delegate;

-(CGContextRef)getContext{
	return ctx;
}

-(void)drawRect:(CGRect)rect{
	[super drawRect:rect];
	ctx = UIGraphicsGetCurrentContext();
	
	float black[] = {0.0,0.0,0.0,1};
	CGContextSetFillColor(ctx, black);
	CGContextAddRect(ctx,CGRectMake(-50.0, -50.0, 100.0, 100.0));
	CGContextFillPath(ctx);

	[delegate setContext:ctx];
}
@end
